//
//  UPRepaymentCarouselView.h
//  Uang Pasti
//
//  Created by 李永彬 on 2025/8/24.
//

#import <UIKit/UIKit.h>
#import "LeaderibleModel.h"

@class UPRepaymentCarouselView;

NS_ASSUME_NONNULL_BEGIN

@protocol UPRepaymentCarouselViewDelegate <NSObject>
- (void)carouselView:(UPRepaymentCarouselView *)carouselView didSelectItemAtIndex:(NSInteger)index data:(LeaderibleModel *)data;
@end

@interface UPRepaymentCarouselView : UIView

@property (nonatomic, weak) id<UPRepaymentCarouselViewDelegate> delegate;

- (void)updateWithDatas:(NSArray<LeaderibleModel *> *)datas;
- (void)setDatas:(NSArray<LeaderibleModel *> *)datas;

@end

NS_ASSUME_NONNULL_END
